]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
util: Fix number of parameters passed to spawn_sync
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 23 Jul 2012 01:23:36 +0000 (22:23 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 24 Jul 2012 09:11:21 +0000 (06:11 -0300)
We passed one too many

https://bugzilla.gnome.org/show_bug.cgi?id=680426

js/misc/util.js

index 1daac123046d06bc38eae340bb261d914a6fddd4..2f755cf963749a59f0b5050cc3c70e45a215ab2b 100644 (file)
@@ -150,7 +150,7 @@ function killall(processName) {
         // whatever...
 
         let argv = ['pkill', '-f', '^([^ ]*/)?' + processName + '($| )'];
-        GLib.spawn_sync(null, argv, null, GLib.SpawnFlags.SEARCH_PATH, null, null);
+        GLib.spawn_sync(null, argv, null, GLib.SpawnFlags.SEARCH_PATH, null);
         // It might be useful to return success/failure, but we'd need
         // a wrapper around WIFEXITED and WEXITSTATUS. Since none of
         // the current callers care, we don't bother.